package com.example.demo.mapper;

import com.example.demo.pojo.Job;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface JobMapper {


    List<Job> selectAll();

    void addJob(@Param("job")Job job);

    void deleteJobById(@Param("id")int id);

    Job selectJobById(@Param("id")int id);

    void updateJob(@Param("job")Job job);
}
